package com.qqt.csr.order.assembler;

import com.qqt.csr.order.entity.WorkOrder;
import com.qqt.csr.order.vo.req.AddingWorkOrderReqVO;
import com.qqt.csr.order.vo.req.EditingWorkOrderReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface WorkOrderAssembler {
    WorkOrderAssembler INSTANCE = Mappers.getMapper(WorkOrderAssembler.class);

    /**
     * AddingWorkOrderReqVO -> WorkOrder
     * @param reqVO
     * @return
     */
    WorkOrder toWorkOrder(AddingWorkOrderReqVO reqVO);
    /**
     * EditingWorkOrderReqVO -> WorkOrder
     * @param reqVO
     * @return
     */
    WorkOrder toWorkOrder(EditingWorkOrderReqVO reqVO);
}
